package com.duyj.client.stock.feign;

import com.duyj.client.stock.model.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("stock")
public interface StockFeignService {

    @PostMapping("/updateStock")
    String updateStock(@RequestParam String code);

    @PostMapping("/putStock")
    void putStock(@RequestBody Stock stock);

    @GetMapping("/getStockName")
    String getStockName(@RequestParam String code);

}
